@extends('index.lay')
@section('title', '引领汽车零售新航向，塑造全民有车新生活')
@section('container-last')
<div class="index_banner">
    <a href="#">
        <img src="/style/images/banner.jpg" class="img-responsive">
    </a>
</div>
@endsection
@section('container-content')
	<div class="index_newcar">
        <div class="index_newcar_title index_newcar_title_border">
            <span class="left_span">新车</span>
        </div>
        <div class="index_newcar_select">
            <ul class="index_newcar_select_ul">
                <li class="index_newcar_select_li index_select_brand" id="index_select_brand">
                    <div class="index_select_title">
                        <span>品牌</span>
                        <i class="fa fa-angle-down"></i>
                    </div>
                    <ul class="index_select_brand_option">
                       <li>
                           <a href="/NewCars?brand=别克">
                           <img src="/style/images/bieke.png">
                           <span>别克</span>
                           </a>
                       </li>
                       <li>
                       <a href="/NewCars?brand=吉利">
                       <img src="/style/images/jili.png">
                           <span>吉利</span>
                       </a>
                      </li>
                       <li>
                       <a href="/NewCars?brand=大众">
                       <img src="/style/images/dazhong.png">
                           <span>大众</span>
                       </a>
                      </li>
                       <li>
                        <a href="/NewCars?brand=日产">
                        <img src="/style/images/richan.png">
                         <span>日产</span>
                       </a>
                     </li>
                     <li>
                        <a href="/NewCars?brand=本田">
                        <img src="/style/images/bentian.png">
                         <span>本田</span>
                       </a>
                     </li>
                    </ul>
                </li>
                <!-- <li class="index_newcar_select_li">
                    <div class="index_select_title">
                        <span>服务费</span>
                    </div>
                    <ul class="index_firstpay_ul" style="margin-top: 17px">
                        <li>
                            <a href="/NewCars?payments=10000">1万以内</a>
                        </li>
                        <li>
                            <a href="/NewCars?payments=10000-20000">1-2万</a>
                        </li>
                        <li>
                            <a href="/NewCars?payments=20000-30000">2-3万</a>
                        </li>
                        <li>
                            <a href="/NewCars?payments=30000-40000">3-4万</a>
                        </li>
                        <li>
                            <a href="/NewCars?payments=40000-50000">4-5万</a>
                        </li>
                        <li>
                            <a href="/NewCars?payments=50000">5万以上</a>
                        </li>
                    </ul>
                </li>
                <li class="index_newcar_select_li">
                    <div class="index_select_title">
                        <span>月租金</span>
                    </div>
                    <ul class="index_firstpay_ul">
                        <li>
                            <a href="/NewCars?MonthPay=2000">2000元以内</a>
                        </li>
                        <li>
                            <a href="/NewCars?MonthPay=2000-3000">2000-3000元</a>
                        </li>
                        <li>
                            <a href="/NewCars?MonthPay=3000-4000">3000-4000元</a>
                        </li>
                        <li>
                            <a href="/NewCars?MonthPay=4000-5000">4000-5000元</a>
                        </li>
                        <li>
                            <a href="/NewCars?MonthPay=5000">5000元以上</a>
                        </li>
                    </ul>
                </li> -->
                <li class="index_newcar_select_li">
                    <div class="index_select_title">
                        <span>车型</span>
                    </div>
                    <ul class="index_firstpay_ul">
                        <li>
                            <a href="/NewCars?Models=微小型车">微小型车</a>
                        </li>
                        <li>
                            <a href="/NewCars?Models=紧凑型车">紧凑型车</a>
                        </li>
                        <li>
                            <a href="/NewCars?Models=中型车">中型车</a>
                        </li>
                        <li>
                            <a href="/NewCars?Models=中大型车">中大型车</a>
                        </li>
                        <li>
                            <a href="/NewCars?Models=SUV">SUV</a>
                        </li>
                        <li>
                            <a href="/NewCars?Models=MPV">MPV</a>
                        </li>
                        <li>
                            <a href="/NewCars?Models=跑车">跑车</a>
                        </li>
                    </ul>
                </li>
            </ul>
            <div class="clearfix"></div>
        </div>
    </div>

    <div class="index_sale">
        <div class="index_newcar_title">
            <span>促销专区</span>
            <span>精选福利，锁定超值优惠</span>
        </div>

        <div class="swiper-container" id="sale_swiper">
            <div class="swiper-wrapper">
            	@foreach($cars['hot'] as $k=>$v)
                <div class="swiper-slide">
                    <div class="swiper_car" style="margin-bottom: 5px;">
                        <a href="/details?carid={{$v->id}}">
                            <img src="{{$carurl.$v->carnum}}/1.jpg">
                            <span class="swiper_title elec">{{$v->name}}</span>
                            <span class="swiper_info elec">{{$v->details}}</span>
                            <span class="swiper_month">指导价{{FormatMoney($v->guide_price)}}</span>
                            <!-- <span class="swiper_nopay elec">筋斗价{{FormatMoney($v->jdc_price)}}</span> -->
                            <span class="swiper_flag">当日提车</span>
                        </a>
                    </div>
                </div>
                @endforeach
            </div>
        </div>

        <!-- 如果需要导航按钮 -->
        <div class="swiper-button-prev swiper-button-black swiper-button-prev-1"></div>
        <div class="swiper-button-next swiper-button-black swiper-button-next-1"></div>

    </div>

    <div class="index_product">
        <div class="index_newcar_title">
            <span>新品上架</span>
            <span>第一时间，发现最新好车</span>
        </div>
        <div class="swiper-container" id="product_swiper">
            <div class="swiper-wrapper">
            	@foreach($cars['new'] as $k=>$v)
                <div class="swiper-slide">
                    <div class="swiper_car" style="margin-bottom: 5px;">
                        <a href="/details?carid={{$v->id}}">
                            <img src="{{$carurl.$v->carnum}}/1.jpg">
                            <span class="swiper_title elec">{{$v->name}}</span>
                            <span class="swiper_info elec">{{$v->details}}</span>
                            <span class="swiper_month">指导价{{FormatMoney($v->guide_price)}}</span>
                            <!-- <span class="swiper_pay elec">筋斗价{{FormatMoney($v->jdc_price)}}</span> -->
                            <img class="swiper_new_flag" src="/style/images/xinping.png">
                        </a>
                    </div>
                </div>
                @endforeach
               
            </div>
        </div>
        <!-- 如果需要导航按钮 -->
        <div class="swiper-button-prev swiper-button-black swiper-button-prev-2"></div>
        <div class="swiper-button-next swiper-button-black swiper-button-next-2"></div>

    </div>

    <div class="index_info">
        <div class="index_info_title">
             <span>汽车仓储直供开创者</span>
              <p>0首付</p>
              <p>0利息</p>
              <p>厂商现车筋斗直达</p>
              <p>弹性购车方案</p>
        </div>
        <div class="index_info_options">
            <ul>
                <li>
                    <span>10%超低服务费</span>
                    <p>服务费10%－20%</p>
                    <p>含购置税，送1年保险 </p>
                    <p>0保证金</p>
                </li>
                <li>
                    <span>10%满1年可买可退</span>
                    <p>用车满1年</p>
                    <p>续租、购买、退还</p>
                    <p>灵活选择(部分车型除外)</p>
                </li>
                <li>
                    <span>筋斗4年分期</span>
                    <p>采用1+3模式，首年租赁</p>
                    <p>满1年后可以选择</p>
                    <p>1次性付清尾款或36期分期</p>
                </li>
                <li>
                    <span>超快审批</span>
                    <p>面对面审核</p>
                    <p>上门服务</p>
                    <p>全程代办，坐等提车</p>
                </li>
            </ul>
        </div>
        <div class="clearfix"></div>
    </div>

    <div class="index_hot">
        <div class="index_newcar_title">
            <span>新车热销</span>
            <span>热购车型，万众之选</span>
        </div>
        <div class="index_hot_container">
            <ul>
            	<!-- 
                <li>
                    <a href="#">
                        <div class="hot_car_left">
                            <img src="/style/images/index_car.jpg" class="hot_car_left_img">
                            <img src="/style/images/hot1.png" class="hot1">
                        </div>
                        <div class="hot_car_right">
                            <span class="swiper_title elec">标致301</span>
                            <span class="swiper_info elec">2018款1.6L 自动舒适版</span>
                            <span class="swiper_pay">服务费0.96万</span>
                            <span class="swiper_month">月租金3198元</span>
                            <span class="hot_tag">时尚家用好帮手</span>
                        </div>
                        <div class="clearfix"></div>
                    </a>
                </li> -->
                @foreach($cars['promo'] as $k=>$v)
                <li>
                    <a href="/details?carid={{$v->id}}">
                        <div class="normal_hot">
                            <img src="/style/images/hot{{$k+1}}.png">
                            <img src="{{$carurl.$v->carnum}}/1.jpg" class="carListimg">
                            <div class="clearfix"></div>
                        </div>
                        <div>
                            <span class="swiper_title elec">{{$v->name}}</span>
                            <span class="swiper_info elec">{{$v->details}}</span>
                            <span class="swiper_month">指导价{{FormatMoney($v->guide_price)}}</span>
                            <!-- <span class="swiper_pay elec">筋斗价{{FormatMoney($v->jdc_price)}}</span> -->
                            <span class="hot_tag">{{$v->desc}}</span>
                        </div>
                    </a>
                </li>
               @endforeach
            </ul>
        </div>
    </div>
@endsection
@section('container-after')
<div class="owner_story_container">
    <div class="container">
        <div class="index_answer">
            <span>筋斗问答</span>
        </div>
        <div class="index_answer_options_all">
            <div class="index_answer_options">
                <div class="options_circle">
                    <img src="/style/images/yuandian.png">
                </div>
                <div class="options_content">
                    <span>筋斗车的购车流程是怎样的呢？</span>
                    <p>筋斗车购车一共分为四步：接受我司地面团队审核、前往车库看车、支付综合费用、提车。</p>
                    <p>1.地面团队审核:通过APP联系我司区域顾问，顾问详解购车内容，同意后提交客户审核资料；</p>
                    <p>2.前往车库看车:审核通过以后，前往我司指定车库（设于省会城市），选择心仪车辆；</p>
                    <p>3.支付综合费用:签署相关协议并支付综合费用；</p>
                    <p>4.提车:客户在车库将心仪车辆提走。</p>
                </div>
                <div class="clearfix"></div>
            </div>
            <div class="index_answer_options">
                <div class="options_circle">
                    <img src="/style/images/yuandian.png">
                </div>
                <div class="options_content">
                    <span>筋斗车的申请租车流程怎样的呢？</span>
                    <p>1.客户下载筋斗车APP；</p>
                    <p>2.当地服务顾问与客户面聊服务细则；</p>
                    <p>3.当地服务顾问对客户进行资质评定并做线上提交申请；</p>
                    <p>4.审核通过后客户前往车库选择车辆；</p>
                    <p>5.办理签约手续及支付综合费用；</p>
                    <p>6.等待筋斗车上牌及保险生效；</p>
                    <p>7.提车；</p>
                </div>
                <div class="clearfix"></div>
            </div>
            <div class="index_answer_options">
                <div class="options_circle"></div>
                <div class="options_content">
                    <a href="/FAQ">查看更多问题 >></a>
                </div>
                <div class="clearfix"></div>
            </div>
        </div>

        <div class="index_answer">
            <span>购车流程</span>
        </div>
        <div class="index_step">
            <img src="/style/images/detail_step.png">
        </div>
        <div class="index_step">
            <div class="step_text">
                <h4 style="font-weight: 600">预约到店</h4>
                <p>在APP内选车联系我们后,我们的销售顾问会在24小时内为您安排1对1的服务</p>
            </div>
            <div class="step_text" style="margin-left: 5%">
                <h4 style="font-weight: 600">信用评估</h4>
                <p>由筋斗车当地服务顾问为客户详细介绍车型和筋斗车方案确认购买意向后,通过当地顾问申请提交审核即可</p>
            </div>
            <div class="step_text" style="margin-left: 5%">
                <h4 style="font-weight: 600">签约支付服务费等待提车</h4>
                <p>客户完成协议签订并支付综合费用后,筋斗车会安排上牌相关事宜</p>
            </div>
            <div class="step_text" style="margin-left: 5%">
                <h4 style="font-weight: 600">到店提车</h4>
                <p>上牌结束后即可自主提车结束流程</p>
            </div>
        </div>
    </div>
</div>
@endsection
@section('write-js')
<script type="text/javascript">
    var imgsrc = $('.index_hot_container li:first').find('.carListimg').attr('src');
	var imgnew1 = $('<img src="'+imgsrc+'" class="hot_car_left_img">');
    var imgnew2 = $('<img src="/style/images/hot1.png" class="hot1">');
	 $('.index_hot_container li:first').find('a:first').find('div:first').attr('class','hot_car_left').empty().append(imgnew1).append(imgnew2).next().attr('class','hot_car_right').after($('<div class="clearfix"></div>'));
    $(document).ready(function () {
        $("#index_select_brand").hover(function () {
            $("#index_select_brand i").toggleClass("fa-angle-down");
            $("#index_select_brand i").toggleClass("fa-angle-up");
            $(".index_select_brand").toggleClass("active");
        });
        var mySwiper = new Swiper ('#sale_swiper', {
            // 如果需要前进后退按钮
            nextButton: '.swiper-button-next.swiper-button-next-1',
            prevButton: '.swiper-button-prev.swiper-button-prev-1',
            slidesPerView : 4,
            slidesPerGroup : 4,
            spaceBetween: 20
        });
        var mySwiper2 = new Swiper ('#product_swiper', {
            // 如果需要前进后退按钮
            nextButton: '.swiper-button-next.swiper-button-next-2',
            prevButton: '.swiper-button-prev.swiper-button-prev-2',
            slidesPerView : 4,
            slidesPerGroup : 4,
            spaceBetween: 20
        });
        $(window).bind("scroll", function () {
            var sTop = $(window).scrollTop();
            var sTop = parseInt(sTop);
            if (sTop >= 130) {
                $("#scrollTopDiv").removeClass("hidden");
            }
            else {
                $("#scrollTopDiv").addClass("hidden");
            }
        });
        $("#aside1").hover(function () {
            $(".aside_fixed_hidden_1").toggleClass("hidden");
        });
        $("#aside2").hover(function () {
            $(".aside_fixed_hidden_2").toggleClass("hidden");
        });
        $("#aside3").hover(function () {
            $(".aside_fixed_hidden_3").toggleClass("hidden");
        });
        $(".index_header_search_input").focus(function(){
            $(".index_header_hidden_hot_search").fadeIn(500);
        });
        $(".index_header_search_input").blur(function(){
            $(".index_header_hidden_hot_search").fadeOut(500);
        });
        $(".header_mine").hover(function () {
            $(".header_mine i").addClass("fa-caret-up");
            $(".header_mine i").removeClass("fa-caret-down");
            $(".hidden_mine").css("display","block");
        },function () {
            $(".hidden_mine").css("display","none");
            $(".header_mine i").addClass("fa-caret-down");
            $(".header_mine i").removeClass("fa-caret-up");
        });
        $(".hidden_mine").hover(function () {
            $(this).css("display","block");
            $(".header_mine i").addClass("fa-caret-up");
            $(".header_mine i").removeClass("fa-caret-down");
            $(".header_mine").css("background-color","#f8f8f8");
        },function () {
            $(this).css("display","none");
            $(".header_mine i").addClass("fa-caret-down");
            $(".header_mine i").removeClass("fa-caret-up");
            $(".header_mine").css("background-color","#fff");
        });
        //登录模块
        $(document).click(function () {
            $(".detail_chakan_detail_content_container").addClass("unvisible_bg");
        });
        $(".close_detail_chakan_detail_content_container").click(function () {
            $(".detail_chakan_detail_content_container").addClass("unvisible_bg");
        });

        $("#login_button").click(function (e) {
            $("#detail_chakan_detail_content_container_login").toggleClass("unvisible_bg");
            $("body").addClass("no_scroll_body");
            e.stopPropagation();
        });
        $("#detail_chakan_detail_content_container_login").click(function (e) {
            e.stopPropagation();
        });

        var slider = new SliderUnlock("#slider", {}, function(){
//            alert('success');
        }, function(){
            $(".warn").text("index:" + slider.index + "， max:" + slider.max + ",lableIndex:" + slider.lableIndex + ",value:" + $("#lockable").val() + " date:" + new Date().getUTCDate());
        });
        slider.init();

        $(".login_submit_first").click(function () {
            $("#detail_chakan_detail_content_container_login").addClass("unvisible_bg");
            $("#detail_chakan_detail_content_container_login_2").toggleClass("unvisible_bg");
            e.stopPropagation();
        });
        $("#detail_chakan_detail_content_container_login_2").click(function (e) {
            e.stopPropagation();
        });
        $(".close_detail_chakan_detail_content_container").click(function () {
            $(".detail_chakan_detail_content_container").addClass("unvisible_bg");
            $("body").removeClass("no_scroll_body");
        })

    })
</script>
@endsection